
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Users</title>
        <script src="js/jquery/jquery-1.8.3.min.js"></script>
        <link rel="stylesheet" href="css/dbpedia/style.css" type="text/css" />
        <link rel="stylesheet" href="css/dbpedia/highlighter.css" type="text/css" />                
    </head>
    
    <body>
        
        <%@include file="header.jsp" %>
        <h1>Users</h1>

        <br><br>

        <table style="width:100%;" border="1" cellpadding="5" cellspacing="5">
            <tr>
                <th></th>
                <th>ID</th>
                <th>Name</th>
                <th>Email</th>
                <th>Last Login</th>
                <th>Date Created</th>
            </tr>
            <c:set var="i" value="0"/>
            <c:forEach items="${model.users}" var="user">
                <c:set var="i" value="${i+1}"/>
                <tr>
                    <td>${i}</td>
                    <td width="400px;"><a href="user.htm?a=2&id=${user.id}">${user.id}</a></td>
                    <td><a href="user.htm?a=2&id=${user.id}">${user.firstName} ${user.lastName}</a></td>
                    <td>${user.email}</td>
                    <td>
                        ${user.lastLogin}                      
                    </td>
                    <td>
                        ${user.dateCreated}                      
                    </td>
                </tr>
            </c:forEach>
        </table>

        <br><br>

    </body>
</html>
